import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86186
 * Date: 2023-11-15
 * Time: 20:45
 */
@WebServlet("/message")
public class ServletGetQuery extends HttpServlet {
    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        String s1 = req.getParameter("aa");
        String s2 = req.getParameter("bb");
        resp.setContentType("test/html; charset=utf8");
        resp.getWriter().write("aa: " + s1 + "bb: " + s2);
    }
}
